using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace SpoonCore.Message.Info
{
	public abstract class AbstractMessageInfo
	{
		public abstract int InfoId { get;}
		public abstract byte[] GetBytes();
		public abstract void SetBytes(BinaryReader br);
		public abstract AbstractMessageInfo Clone();

		public static implicit operator MessageInfo(AbstractMessageInfo info)
		{
			MessageInfo res = new MessageInfo();
			res.Infos.Add(info);
			return res;
		}
	}
}
